﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace TraceThisItem.Domain.Initializers
{
	public class ItemStatusConfiguration : EntityTypeConfiguration<ItemStatus>
	{
		public ItemStatusConfiguration()
		{
			HasKey(status => status.Date);

			HasRequired(status => status.Responsible)
				.WithMany();

			HasRequired(status => status.StatusNode)
				.WithMany();
		}
	}
}
